# • 获取验证码：http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=verify
import requests
session = requests.session()
aa= session.get(url="http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=verify")
print(aa.text)
# • 登录：http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login

ti={
    "username": "13488888888",
    "password": "123456",
    "verify_code": "8888"
}
aa=session.post(url="http://tpshop-test.itheima.net/index.php?m=Home&c=User&a=do_login",json=ti)
print(aa.json())
# • 我的订单：http://tpshop-test.itheima.net/Home/Order/order_list.html
aa = session.get(url="http://tpshop-test.itheima.net/Home/Order/order_list.html")
print(aa.text)